import framework.Factory;
import framework.Product;
import idcard.IDCardFactory;
/**
 * @Author:DarknessShadow
 * @description:主测试程序
 * @date 2020/5/11 13:47
 */
public class Main {
    public static void main(String[] args) {
        Factory factory = new IDCardFactory();
        Product card1 = factory.create("小明");
        Product card2 = factory.create("小红");
        Product card3 = factory.create("小话");
        card1.use();
        card2.use();
        card3.use();

    }
}
